home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
a_utils
/
perl
/
perl5a1.lha
/
perl5alpha1
/
do
/
repeatary
< prev
next >
Wrap
Text File
|
1992-08-15
|
393b
|
26 lines
int
do_repeatary(ARGS)
ARGSdecl
{
MSP;
register int count = POPi;
register int items = sp - mark;
register int i;
int max;
max = items * count;
MEXTEND(mark,max);
if (count > 1) {
while (sp > mark) {
if (*sp)
(*sp)->str_pok &= ~SP_TEMP;
}
mark++;
repeatcpy(mark + items, mark, items * sizeof(STR*), count - 1);
}
sp += max;
MRETURN;
}